fadfc76
@@ -33,9 +33,9 @@
public class StandardTypeComparator implements TypeComparator {
 	public int compare(Object left, Object right) throws SpelEvaluationException {
 		// If one is null, check if the other is
 		if (left == null) {
-			return right == null ? 0 : 1;
+			return right == null ? 0 : -1;
 		} else if (right == null) {
-			return -1; // left cannot be null
+			return 1; // left cannot be null
 		}
 
 		// Basic number comparisons
